package com.swf.common.base;

import java.util.*;

import org.apache.commons.lang.StringUtils;



import com.swf.common.utils.*;

public class FwsConstants {
	/**
	 * 禁用默认构造器	
	 */
	private FwsConstants() {
	}
	/**
	 * 系统错误的错误代码
	 */
	public static final String DEFAULT_ERROR_CODE = "CMS0000";
	
	/**
	 * 当前系统的换行符，window为\r\n,linux为\r,mac为\n
	 */
	public static final String line_separator = System.getProperty("line.separator") ;
	/**
	 * 当前系统的语言
	 */
	public static final String LANGUAGE = Locale.getDefault().toString();
	
	public static final String ZH_CN ="zh_CN" ;
	
	/**
	 * 文件分隔符，linux为/,windos为\
	 */
	public static final String file_separator = System.getProperty("file.separator");
	/**
	 * 获取项目路径如F:\allworkspace\ws2013cms\common
	 */
	public static final String PROJECT_PATH =System.getProperty("user.dir") ;
	
	/**
	 * 获取工作空间路径：格式为 c:/a/b/c/
	 */
	public static final String WORKSPACE_DIR =FwsPathUtils.DealSeparator(PROJECT_PATH.substring(0,PROJECT_PATH.lastIndexOf(file_separator)));
	
	public static final String TAB = StringUtils.repeat(" ",4);
}
